package com.wanmait.wisdom.entity;

import java.io.Serializable;
import java.sql.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Value;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2024/04/27
*/
@Data
@Accessors(chain = true)
public class Owner implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
	* 姓名
	*/
    @TableField(value = "name")
    private String name;

    /**
	* 身份证号
	*/
    private String card;

    /**
	* 身份证正面
	*/
    private String cardPicFacade;

    /**
	* ...反面
	*/
    private String cardPicBack;

    /**
	* 照片
	*/
    private String picture;


    /**
	* 电话1
	*/
    private String phone1;

    /**
	* 电话2
	*/
    private String phone2;

    /**
	* 紧急联系人
	*/
    private String emergencyPerson;

    /**
	* 紧急联系人电话1
	*/
    private String emergencyPhone;

    /**
	* 紧急联系人电话2
	*/
    private String emergencyPhone2;

    /**
	* 注册时间
	*/
    @TableField(value = "register_time")
    private Date registerTime;

    /**
    /**
	* 籍贯
	*/
    private String nativePlace;

    /**
	* 购房时间
	*/
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date buyTime;

    /**
	* 添加人
	*/
    private Integer staffId;

    /**
	* 是否在此居住
	*/
    private Integer liveing;

    /**
	* 账号是否可用
	*/
    private Boolean enable;

    /**
	* 邮箱
	*/
    private String email;

    //单元id
    private Integer unitId;
    @TableField(exist = false)

    private Unit unit;

    //楼栋id
    private Integer buildingId;
    @TableField(exist = false)
    private Building building;

    //门牌号
    private Integer houseId;

    @TableField(exist = false)
    private House house;



    private static final long serialVersionUID = 1L;
}
